package com.edu.service;

import com.edu.component.PageBean;
import com.edu.component.QueryParam;
import com.edu.entity.User;
import com.edu.utils.FileUploader;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

@Service
public interface UserService {
    User getUserByName(String name);
    List<User> queryAll();
    PageBean<User> listPage(QueryParam userQuery);
    Integer addUser(User user);

    void updateHeadImgByUser(
         User user, MultipartFile file, String dir );

    void updateUser(User user);
    void deleteUser(Integer id);
    void deleteBatchUser(Integer[] ids);
    void saveUserRole(Map paramMap);

    void updateUserImage(Integer id, FileUploader FD);
}

